#include <iostream>
#include <memory>
#include <cstdlib>

#include "select.hpp"
// ./select  8080
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        printf("Usage:\n\t%s port\n\n", argv[0]);
        return 0;
    }
    int16_t port = std::stoi(argv[1]);
    std::unique_ptr<Select> _select = std::make_unique<Select>(port);
    _select->Loop();
    return 0;
}